import requests

url = "https://api.bilibili.com/x/web-interface/wbi/index/top/feed/rcmd?brush=1&ps=10&fresh_idx=2"

headers = {
'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36'
}
response = requests.get(url, headers=headers)
print(response.json()['data']['item'])
print(len(response.json()['data']['item']))
print(response.status_code)